from django.contrib.auth.models import AbstractUser
from django.db import models

# Create your models here.
# from apps.jobs.models import jobs


class User(AbstractUser):
    """自定义用户模型类"""
    # UTYPE_CHOICES = (
    #     (1,"个人"),
    #     (2,"公司")
    # )
    mobile = models.CharField(max_length=11, unique=True, verbose_name='手机号')
    password = models.CharField(max_length=11,default=0,unique=False,verbose_name="密码")
    # user_type = models.SmallIntegerField(choices=UTYPE_CHOICES,verbose_name="用户类型",default=1)
    # is_frim = models.BooleanField(default=False,verbose_name="是否为企业用户")
    profess_name = models.CharField(max_length=18,verbose_name="职业名字",default="Python开发工程师")
    work_exper = models.CharField(max_length=11,verbose_name="工作经验",default="十年开发大佬")
    project = models.TextField(verbose_name="项目",default="{'美多商城':'wwww.weitezhu.xyz'}")
    brief = models.CharField(max_length=100,verbose_name="自我描述",default="美丽帅气无敌超级棒")
    jineng = models.CharField(max_length=100,verbose_name="技能",default="VUE-DJANGO-FLASK-MYSQL")

    class Meta:
        db_table = 'tb_users'
        verbose_name = '用户'
        verbose_name_plural = verbose_name

    def __str__(self):
        return self.username



